package com.hand.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.service.Tag;
import springfox.documentation.spring.web.plugins.Docket;

/**
 * Swagger Api 描述配置
 * @author zhaozihao
 */
@Configuration
public class SwaggerApiConfig {
    public static final String COMPANY = "Company";
    public static final String CUSTOMER = "Customer";
    public static final String ITEM = "Item";
    public static final String SO_HEADER = "SO_Header";
    public static final String SO_LINE = "SO_Line";


    @Autowired
    public SwaggerApiConfig(Docket docket) {
        docket.tags(
                new Tag(COMPANY, "公司信息"),
                new Tag(CUSTOMER, "客户信息"),
                new Tag(ITEM, "物料信息"),
                new Tag(SO_HEADER, "订单头信息"),
                new Tag(SO_LINE, "订单行信息")

        );

    }
}
